@pc-topheight: 80px;

@model-topHeight: 2.5rem;

@fontColor: #000;

@commonHeight: 2.5rem;

/*pc*/
@media only screen and (min-device-width: 768px) {
  .model {
    width: 1088px;
    margin: 0 auto;
    .menu {
      width: 100%;
      height: @pc-topheight;
      background: #fff;
      display: none;
      .last {
        line-height: @pc-topheight;
        text-align: center;
        font-family: "Courier New", Courier, monospace;
        font-size: 30px;
        font-weight: 400;
        color: @fontColor;
        cursor: default;
      }
    }
    .chat{
      .other {
        pre{
          font-size: 1rem;
        }
      }
    }
    .chat .avatar {
      width: 5rem;
      height: 5rem;
      position: relative;
      display: block;
      z-index: 2;
      border-radius: 100%;
      background-color: rgba(255, 255, 255, 0.9);
      img {
        width: 5rem;
        height: 5rem;
        border-radius: 100%;
        background-color: rgba(255, 255, 255, 0.9);
      }
    }

    /* 底部输入框 */
    .footer {
      // height: 3rem;
      margin-bottom:0.3rem;
      background: #fff;
      padding: 1.56rem;
      display: flex;
      justify-content: space-between;
      textarea.textarea {
        width: 100%;
        resize: none;
        overflow: hidden;
        background: #f2f2f2;
        border: none;
        outline: none;
        border-radius: 15px;
        font-size: 1rem;
        text-indent: 1em;
        flex: 6;
        color: #000;
        box-sizing: border-box;

      }
      /* 提交 */
      .emojis {
        flex: 1;
        font-size: 2rem;
        line-height: 2;
        padding-left: 15px;
        color: #000;
        text-align: center;
      }
    }
  }
  
  .msg {
    padding: 0.5rem;
    p {
      font-size: 1rem;
      margin: 0;
    }
  }
}

/*mobile*/
@media only screen and (max-device-width: 768px) {
  .model{
    overflow: hidden;
  }
  .menu {
    height: @model-topHeight;
    background: #fff;
    .last {
      line-height: @model-topHeight;
      text-align: center;
      font-family: "Courier New", Courier, monospace;
      font-size: 1rem;
      font-weight: 400;
      color: #000;
      cursor: default;
    }
  }

  .chat{
    .other {
      pre{
        font-size: 1rem;
      }
    }
  }
  .chat .avatar {
    width: @model-topHeight;
    height: @model-topHeight;
    position: relative;
    display: block;
    z-index: 2;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    img {
      width: @model-topHeight;
      height: @model-topHeight;
      border-radius: 100%;
      background-color: rgba(255, 255, 255, 0.9);
    }
  }
  .msg {
    padding: 1rem;
    p {
      font-size: 1rem;
      margin: 0;
    }
  }

  /* 底部输入框 */
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.1rem;
    display: flex;
    justify-content: space-between;
    textarea.textarea {
      width: 100%;
      resize: none;
      overflow: hidden;
      background: #f2f2f2;
      border: none;
      outline: none;
      border-radius: 15px;
      font-size: 1rem;
      text-indent: 1em;
      flex: 5;
      color: #000;
      box-sizing: border-box;
    }
    /* 提交 */
    .emojis {
      flex: 1;
      font-size: 1.2rem;
      line-height:2;
      padding-left: 15px;
      color: #000;
      text-align: left;
    }
  }
}

/* 头部区域 */

.chat li {
  padding: 0.5rem;
  list-style: none;
}

/* 机器人  */
.other {
  display: flex;
}
.other .msg {
  align-self: flex-end;
  order: 1;
  border-top-left-radius: 0px;
  margin-left: 0.625rem;
  box-shadow: -1px 2px 0px #d4d4d4;
}
/* 自己 */
.self {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.self .msg {
  order: 1;
  border-bottom-right-radius: 0px;
  margin-right: 0.625rem;
  box-shadow: 1px 2px 0px #d4d4d4;
}
.self .avatar {
  order: 2;
}
.msg {
  background: white;
  min-width: 3.125rem;
  border-radius: 0.625rem;
  border: 0.5px solid #c2d9ea;
  box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.07);
}
.msg_right {
  background: #1a7bfd;
}

.msg .left {
  color: #000;
}
.msg .right {
  color: #fff;
}


